package com.ruoyi.be.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.be.mapper.MedicalCpoeAreaMapper;
import com.ruoyi.be.domain.MedicalCpoeArea;
import com.ruoyi.be.service.IMedicalCpoeAreaService;

/**
 * 病区管理Service业务层处理
 * 
 * @author cdj
 * @date 2022-01-04
 */
@Service
public class MedicalCpoeAreaServiceImpl implements IMedicalCpoeAreaService 
{
    @Autowired
    private MedicalCpoeAreaMapper medicalCpoeAreaMapper;

    /**
     * 查询病区管理
     * 
     * @param id 病区管理主键
     * @return 病区管理
     */
    @Override
    public MedicalCpoeArea selectMedicalCpoeAreaById(String id)
    {
        return medicalCpoeAreaMapper.selectMedicalCpoeAreaById(id);
    }

    /**
     * 查询病区管理列表
     * 
     * @param medicalCpoeArea 病区管理
     * @return 病区管理
     */
    @Override
    public List<MedicalCpoeArea> selectMedicalCpoeAreaList(MedicalCpoeArea medicalCpoeArea)
    {
        return medicalCpoeAreaMapper.selectMedicalCpoeAreaList(medicalCpoeArea);
    }

    /**
     * 新增病区管理
     * 
     * @param medicalCpoeArea 病区管理
     * @return 结果
     */
    @Override
    public int insertMedicalCpoeArea(MedicalCpoeArea medicalCpoeArea)
    {
        return medicalCpoeAreaMapper.insertMedicalCpoeArea(medicalCpoeArea);
    }

    /**
     * 修改病区管理
     * 
     * @param medicalCpoeArea 病区管理
     * @return 结果
     */
    @Override
    public int updateMedicalCpoeArea(MedicalCpoeArea medicalCpoeArea)
    {
        return medicalCpoeAreaMapper.updateMedicalCpoeArea(medicalCpoeArea);
    }

    /**
     * 批量删除病区管理
     * 
     * @param ids 需要删除的病区管理主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoeAreaByIds(String[] ids)
    {
        return medicalCpoeAreaMapper.deleteMedicalCpoeAreaByIds(ids);
    }

    /**
     * 删除病区管理信息
     * 
     * @param id 病区管理主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoeAreaById(String id)
    {
        return medicalCpoeAreaMapper.deleteMedicalCpoeAreaById(id);
    }
}
